<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="/guxuan/Public/css/fileadd.css">
		<link rel="stylesheet" href="/guxuan/Public/css/commonc.css" />
		<script src="/guxuan/Public/js/jquery.js"></script>
		<script src="/guxuan/Public/js/index.js"></script>
		<title>个人主页</title>
	</head>

	<body>
		 <link rel="stylesheet" href="/guxuan/Public/css/fileadd.css">
<link rel="stylesheet" href="/guxuan/Public/css/Common/header.css" />
<header id="header">
	<h2>个人空间</h2>
	<ul>
		<li class="header-left"><a href="###">个人中心</a></li>
		<li class="header-left myHome"><a href="# ##">我的主页</a></li>
		<li class="header-left"><a href="###">好友</a></li>
		<li class="header-left"><a href="###">游戏</a></li>
		<li class="header-left"><a href="###">装扮</a></li>
		<?php if(!empty($tx)): ?><li class="header-right"><a href="<?php echo U('Users/clearUser');?>" class="zx">注消</a></li><?php endif; ?>
		<li class="header-right"><a href="###" class="grzxclick" title="<?php echo ($tx["nickname"]); ?>"><?php if(!empty($_SESSION['user_id'])): echo ($tx["nickname"]); ?>aaaa<?php else: ?><a href="<?php echo U('Users/UserLogin');?>">亲,请登陆</a><?php endif; ?></a></li>
		<li class="header-right tx">
			<a href="###">
				<img src="<?php echo ($tx["user_tx"]); ?>" alt="" class="tximg"/>
			</a>
		</li>
		<li class="header-right">
			<input type="text" list="card" placeholder="游戏/动态/用户">
			<datalist id="card">
				<option value="1"></option>
				<option value="1"></option>
				<option value="1"></option>
			</datalist>
			<a href="###" class="seach"></a>
		</li>
	</ul>
</header>
	<div class="grzx">
		<ul>
			<li><a href="<?php echo U('Userperconal/perconal',array('uid'=>$_SESSION['user_id']));?>">个人资料</a></li>
			<li><a href="###">1</a></li>
			<li><a href="###">3</a></li>
			<li><a href="###">4</a></li>
			<li><a href="###">5</a></li>
		</ul>
	</div>
	<div class="header-fs header-fs-show header-fs-none" id="header-fs">
		<div class="header-fs-left">
			<h2>我的主页</h2>
		</div>
		<div class="header-fs-center"></div>
		<div class="header-fs-right">
			<figure>
                <a href="###" class="image1"></a>
                <figcaption>
                   	相册
                </figcaption>         
            </figure>
            <figure>
                <a href="###" class="image2"></a>
                <figcaption>
                  	主页
                </figcaption>         
            </figure>
            <figure>
                <a href="###" class="image3"></a>
                <figcaption>
                	    说说
                </figcaption>         
            </figure>
            <figure>
                <a href="###" class="image3"></a>
                <figcaption>
                  	  说说
                </figcaption>         
            </figure>
            <figure>
                <a href="###" class="image3"></a>
                <figcaption>
                   	 说说
                </figcaption>         
            </figure>
		</div>
	</div>

<div style="height:45px;"></div>
<div class="header-nav">
    <ul class="grd-nav">
        <li><a href="<?php echo U('Index/index');?>">主页</a></li>
        <li><a href="###">日志</a></li>
        <li><a href="###">相册</a></li>
        <li><a href="###">说说</a></li>
        <li><a href="###">留言板</a></li>
        <li><a href="###">个人档</a></li>
        <li><a href="###">音乐</a></li>
    </ul>
</div>

		<div class="content">
			<div class="content-left">
				<div class="content-left-hydt">
					<h3>好友动态</h3>
					<ul>
						<li>
							<a href="###">特别关心</a>
						</li>
						<li>
							<a href="###">与我相关</a>
						</li>
						<li>
							<a href="###">去年今天</a>
						</li>
						<li>
							<a href="###">我的收藏</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="content-center">
				<div class="content-center-fb">
					<div>
						<textarea name="content" id="textarea" cols="50" rows="6" placeholder="把最美好的留下来!!!"></textarea>
					</div>
					<div class="content-center-tj">
						<input type="button" value="提交" class="fbdt">
						<div class="content-center-tj-kj">
							<p>
								可见范围:&nbsp; <span class="block"> <select name="isdisplay"
								id="isplay">
									<option value="1">对所有人可见</option>
									<option value="2">仅对好友可见</option>
									<option value="3">对指定人可见</option>
									<option value="4">对特别关心可见</option>
							</select>
							</span>
							</p>
						</div>
					</div>
				</div>
				<div class="dtbt">
					<h4>全部动态&nbsp;</h4>
				</div>
				<?php if(is_array($moodList)): foreach($moodList as $key=>$vo): if($vo["isdisplay"] == 1): ?><div class="content-center-cont">
							<div class="content-center-dt">
								<div class="dt-img-xx">
									<img src="<?php echo ($vo["user_tx"]); ?>" title="<?php echo ($vo["title"]); ?>">
								</div>
								<div class="user-info">
									<a href="" class="user-info-left"><?php echo ($vo["nickname"]); ?> </a>
									<?php if($vo["uid"] == resess()): ?><a href="###" class="user-info-right">删除</a><?php endif; ?>
									<p>
										<?php echo (timeval($vo["create_time"])); ?> <span>浏览(<?php echo ($vo["hits"]); ?>)</span>
									</p>
								</div>
								<div class="user-content">
									<p><?php echo ($vo["content"]); ?></p>
								</div>
								<!-- 点赞收藏回复等功能 -->
								<ul class="gzgn">
									<li>
										<a href="###" class="dianzan" urll="<?php echo U('Dianzan/adddianzan');?>"><?php if($vo['iszan'] == 1): ?>取消赞<?php else: ?>赞<?php endif; ?></a>|</li>
										<input type="hidden" name="mid" id="mid" title="<?php echo ($vo["id"]); ?>" />
									<li>
										<a href="###">评论</a>|</li>
									<li>
										<a href="###">转发</a>|</li>
									<li>
										<a href="###">收藏</a>|</li>
									<li>
										<a href="###">....</a>
									</li>
									<!-- 回复 -->
									<?php if(is_array($vo["hf"])): foreach($vo["hf"] as $key=>$v): if(!empty($v)): ?><li class="mood-hf">
												<div class="hf-user">
													<div class="u-avatar">
														<img src="<?php echo ($v["user_tx"]); ?>" title="<?php echo ($v["niackname"]); ?>" />
													</div>
													<div class="u-hfnr">
														<a href="###" class="hf-user-nick" style="width: 56px; line-height: 20px; color: #295c9d; font-size: 12px;"><?php echo ($v["nickname"]); ?></a>: <span class="cont-mood" ><?php echo ($v["content"]); ?></span>
														<p class="hf-sj">
															<span class="hf-rq"><?php echo (timeval($v["create_time"])); ?></span>
															<a class="cont-reply" style="line-height: 20px; color: #295c9d; font-size: 12px;">回复</a>
														</p>
													</div>
												</div>
											</li><?php endif; endforeach; endif; ?>
									<!-- 回复 -->
									<!-- 点赞收藏回复等功能 -->
									<!--点赞人的头像-->
									<li class="mood-jdz">
										<div class="icon-btn" style="background:url('/guxuan/Public/img//xtb.jpg'); background-position: 99px 601px;">
											
										</div>
										<?php if(is_array($vo["zan"])): foreach($vo["zan"] as $key=>$z): ?><img src="<?php echo ($z["user_tx"]); ?>" alt="" class="zanimg" db="<?php echo ($z["uid"]); ?>"/><?php endforeach; endif; ?>
									</li>
									<!--点赞人的头像-->
									<li class="hf"><textarea name="" id="" cols="10" rows="10" placeholder="你也说点吧" class='mood-hf-cont '></textarea> <input type="button" value="发布" class='mood-hf-btn' data-url='<?php echo U("Moodreply/addReply");?>'> <input type="hidden" value="<?php echo ($vo["id"]); ?>" name="mid" id="mood-mid" /></li>
								</ul>
							</div>
						</div><?php endif; endforeach; endif; ?>
			</div>
			<div class="content-right"></div>
		</div>
		<input type="hidden" name="xuanxiang" id='uid' title="<?php echo (session('user_id')); ?>" />
		<input type="hidden" name="urll" id="urll" data-url="<?php echo U('Mood/addMood');?>" />
	</body>

</html>